<a href="valid/link.html" 
   tal:attributes="href python:'/base/' + attrs['href']">blah, blah</a>
